<script setup>
  const openNewTab = (url) => {
    window.open(url, '_blank');
  }
</script>

<template>
  <div class="extremity_box">
    <div class="title wow animate__animated animate__fadeInUp">NetWork</div>
    <div class="content">
      <div class="item">
        <div class="sub_title wow animate__animated animate__fadeInUp">ZKC Mini Rollup</div>
        <div class="sub_des wow animate__animated animate__fadeInUp">
          Empower developers with a turnkey solution for creating and operating zkWASM-based decentralized applications, including Fully On-Chain Games (FOCG)
        </div>
        <div @click="openNewTab('https://docs.zkcross.org/solutions/zkc-mini-rollup')" class="learn_more wow animate__animated animate__fadeInUp">Learn more</div>
        <div class="item_content wow animate__animated animate__fadeInUp">
          <img src="@/assets/images/solutions_03.png" alt="">
          <div>Complete infrastructure for launching your own zkWASM-based Layer 2</div>
        </div>
        <div class="item_content wow animate__animated animate__fadeInUp">
          <img src="@/assets/images/solutions_12.png" alt="">
          <div>Customizable rollup tailored to your specific application requirements</div>
        </div>
        <div class="item_content wow animate__animated animate__fadeInUp">
          <img src="@/assets/images/solutions_02.png" alt="">
          <div>Simplified deployment and management of zkWASM dApps</div>
        </div>
        <div class="item_content wow animate__animated animate__fadeInUp">
          <img src="@/assets/images/solutions_01.png" alt="">
          <div>Seamless integration with Ethereum for enhanced security and liquidity</div>
        </div>
      </div>
      <div class="item">
        <div class="sub_title wow animate__animated animate__fadeInUp">ZKC Settlement Service</div>
        <div class="sub_des wow animate__animated animate__fadeInUp">
          Leverage our zero-knowledge ready on-chain settlement solution for your decentralized applications
        </div>
        <div @click="openNewTab('https://docs.zkcross.org/solutions/zkc-settlement-service')" class="learn_more wow animate__animated animate__fadeInUp">Learn more</div>
        <div class="item_content wow animate__animated animate__fadeInUp">
          <img src="@/assets/images/solutions_06.png" alt="">
          <div>Easy registration process for dApps to utilize on-chain settlement</div>
        </div>
        <div class="item_content wow animate__animated animate__fadeInUp">
          <img src="@/assets/images/solutions_05.png" alt="">
          <div>Secure and verifiable settlement of complex application states</div>
        </div>
        <div class="item_content wow animate__animated animate__fadeInUp">
          <img src="@/assets/images/solutions_04.png" alt="">
          <div>Integration with various data availability layers for enhanced reliability</div>
        </div>
        <div class="item_content wow animate__animated animate__fadeInUp">
          <img src="@/assets/images/solutions_07.png" alt="">
          <div>Automated dispute resolution mechanisms</div>
        </div>
      </div>
      <div class="item">
        <div class="sub_title wow animate__animated animate__fadeInUp">ZKC WASM Execution Service</div>
        <div class="sub_des wow animate__animated animate__fadeInUp">
          Experience server-side execution with the security and verifiability of zero-knowledge proofs
        </div>
        <div @click="openNewTab('https://docs.zkcross.org/solutions/zkc-wasm-execution-service')" class="learn_more wow animate__animated animate__fadeInUp">Learn more</div>
        <div class="item_content wow animate__animated animate__fadeInUpt">
          <img src="@/assets/images/solutions_08.png" alt="">
          <div>Host and execute WebAssembly code on ZKC nodes</div>
        </div>
        <div class="item_content wow animate__animated animate__fadeInUp">
          <img src="@/assets/images/solutions_09.png" alt="">
          <div>Server-side application logic with the benefits of blockchain security</div>
        </div>
        <div class="item_content wow animate__animated animate__fadeInUp">
          <img src="@/assets/images/solutions_10.png" alt="">
          <div>All executions provable by zkWASM cloud for enhanced transparency</div>
        </div>
        <div class="item_content wow animate__animated animate__fadeInUp">
          <img src="@/assets/images/solutions_11.png" alt="">
          <div>Ideal for applications requiring high performance and complex computations</div>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.extremity_box {
  margin-top: 42px;
  .title {
    font-weight: 600;
    font-size: 30px;
    color: #000000;
    padding-left: 5.33%;
  }
  .content {
    margin-top: 23px;
    padding: 5.87% 8%;
    background: #F7F7F7;
    border-radius: 33px;
    border: 1px solid #DEDEDE;
    box-sizing: border-box;
    background: linear-gradient( 134deg, #010C21 0%, #145A73 100%);
    .item {
      background: #000000;
      border-radius: 23px 23px 23px 23px;
      border: 1px solid #DEDEDE;
      padding: 11.11% 6.35%;
      margin-top: 40px;
      &:first-child {
        margin-top: 0px;
      }
      .sub_title {
        font-weight: 600;
        font-size: 30px;
        color: #FFFFFF;
        line-height: 36px;
      }
      .sub_des {
        font-weight: 300;
        font-size: 15px;
        color: #FFFFFF;
        line-height: 23px;
        margin-top: 12px;
      }
      .learn_more {
        background: rgba(255,255,255,0.26);
        border-radius: 47px 47px 47px 47px;
        border: 1px solid #FFFFFF;
        font-weight: 300;
        font-size: 12px;
        color: #FFFFFF;
        line-height: 18px;
        width: max-content;
        margin-top: 33px;
        padding: 5px 20px;
        margin-bottom: 50px;
      }
      .item_content {
        display: flex;
        align-items: center;
        margin-top: 18px;
        div {
          font-weight: 400;
          font-size: 13px;
          color: rgba(255,255,255,0.58);
          line-height: 17px;
          margin-left: 12px
        }
        img {
          width: 30px;
        }
      }
    }
  }
}
</style>
